import { EChartsOption } from 'echarts'

export const relationOptions: EChartsOption = {
  title: {
    text: 'Les Miserables',
    subtext: 'Default layout',
    top: 'bottom',
    left: 'right'
  },
  tooltip: {},
  animationDuration: 1500,
  animationEasingUpdate: 'quinticInOut',
  series: [
    {
      name: 'Les Miserables',
      type: 'graph',
      layout: 'circular',
      data: [
        { id: '000', name: '000' },
        { id: '001', name: '001' },
        { id: '002', name: '002' },
        { id: '003', name: '003' }
      ],
      links: [
        { source: '000', target: '001' },
        { source: '000', target: '002' },
        { source: '001', target: '002' },
        { source: '001', target: '003' }
      ],
      roam: true,
      label: {
        show: true,
        position: 'left',
        formatter: '{b}'
      },
      edgeSymbol: ['none', 'arrow'],
      lineStyle: {
        color: '#D10E00',
        width: 1,
        opacity: 1
      }
    }
  ]
}
